package com.yfp.client.service.impl;

import com.yfp.client.domain.MarActivity;
import com.yfp.client.domain.MarActivityDetails;
import com.yfp.client.mapper.MarActivityDetailsMapper;
import com.yfp.client.mapper.MarActivityMapper;
import com.yfp.client.service.MarActivityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: 活动
 * 
 * @CreateDate: 2024/7/19 10:23
 * @UpdateUser: 
 * @UpdateDate: 2024/7/19 10:23
 * @UpdateRemark: 暂无修改
 * @Version: 1.0
 */
@Service
public class MarActivityServiceImpl implements MarActivityService {
    @Autowired
    private MarActivityMapper marActivityMapper;
    @Autowired
    private MarActivityDetailsMapper marActivityDetailsMapper;

    @Override
    public List<MarActivityDetails> findMarActivityDetailsByMarActivityId(Long id) {
        return marActivityDetailsMapper.findByMarActivityId(id);
    }

    @Override
    public MarActivity findById(Long id) {
        return marActivityMapper.findById(id);
    }

    @Override
    public MarActivity findByMarketingId(Long marketingId) {
        return marActivityMapper.findByMarketingId(marketingId);
    }
}
